<?$this->load->library('form_validation');?>
<div class="container">
	<div class="module mod-line-top">
	<?=validation_errors('<div class="alert alert-danger">', '</div>'); ?>
	<?php
	if(isset($errorMsg) && $errorMsg){
		echo '<div class="alert alert-danger">'.$errorMsg.'</div>';
	}
	?>
	
	<form id="home-form" name="home-form" action="/index.php/home/regist" method="post">
		<input type="hidden" name="operate" id="operate" value="1">
		<h2>注册用户</h2>
		<div class="row">
			<div class="form-group col-md-6">
				<label>邮箱</label>
				<input class="form-control" maxlength="50" name="email" id="email" type="email" value="<?php echo set_value('email'); ?>">
			</div>
		</div>
		<div class="row">
			<div class="form-group col-md-6">
				<label>密码</label>
				<input class="form-control" maxlength="50" name="password" id="password" type="password" >
			</div>
		</div>
		<div class="row">
			<div class="form-group col-md-6">
				<label>确认密码</label>
				<input class="form-control" maxlength="50" name="con_password" id="password" type="password" >
			</div>
		</div>
		<div class="form-actions">
			<button type="submit" class="btn btn-primary">注册</button>
		</div>
	</form>
	</div>
</div>